﻿<%@ Control
    Language="C#"
    AutoEventWireup="true"
    CodeBehind="PasswordChange.ascx.cs"
    Inherits="AutoStopApp.Controls.PasswordChange" %>
<%@ Register
    Assembly="Telerik.Web.UI"
    Namespace="Telerik.Web.UI"
    TagPrefix="telerik" %>
<%@ Register
    TagPrefix="sc"
    Assembly="AutoStopApp"
    Namespace="AutoStopApp.ServerControls" %>
<div style="float:left">
    <h2>
        <img
            src="/images/puce.gif"
            alt="puce"
            width="34"
            height="24" />
        <asp:Literal
            runat="server"
            Text="Zmena hesla"
            ID="Literal17" />
    </h2>
    <asp:Panel
        ID="pnlFormData"
        runat="server">
        <div
            class="CustomPanel">
            <div
                class="CustomPanelInner">
                <div
                    class="formRow">
                    <div
                        class="columnLabel">
                        <asp:Literal
                            ID="Literal1"
                            runat="server"
                            Text="E-Mail" />
                    </div>
                    <div
                        class="columnInput">
                        <telerik:RadTextBox
                            Width="95%"
                            ID="txtMail"
                            runat="server"
                            Enabled="false" />
                    </div>
                    <div
                        class="columnError">
                        &nbsp;
                    </div>
                </div>
                <div
                    class="formRow">
                    <div
                        class="columnLabel">
                        <asp:Literal
                            ID="Literal2"
                            runat="server"
                            Text="Aktuálne heslo" />
                    </div>
                    <div
                        class="columnInput">
                        <telerik:RadTextBox
                            Width="95%"
                            ID="txtCurrentPassword"
                            runat="server"
                            TextMode="Password" />
                    </div>
                    <div
                        class="columnError">
                        <asp:RequiredFieldValidator
                            Display="Dynamic"
                            ID="txtCurrentPasswordValidator1"
                            runat="server"
                            ControlToValidate="txtCurrentPassword"
                            ErrorMessage="Pole je nutné vyplniť" />
                    </div>
                </div>
                <div
                    class="formRow">
                    <div
                        class="columnLabel">
                        <asp:Literal
                            ID="Literal3"
                            runat="server"
                            Text="Nové heslo" />
                    </div>
                    <div
                        class="columnInput">
                        <telerik:RadTextBox
                            Width="95%"
                            ID="txtPassword1"
                            runat="server"
                            TextMode="Password" />
                    </div>
                    <div
                        class="columnError">
                        <asp:RequiredFieldValidator
                            Display="Dynamic"
                            ID="txtPassword1Validator1"
                            runat="server"
                            ControlToValidate="txtPassword1"
                            ErrorMessage="Pole je nutné vyplniť" />
                        <asp:RegularExpressionValidator
                            Display="Dynamic"
                            ID="txtPassword1Validator2"
                            runat="server"
                            ControlToValidate="txtPassword1"
                            ErrorMessage="Zadajte aspoň 5 znakov"
                            ValidationExpression=".{5}.*" />
                        <asp:RegularExpressionValidator
                            Display="Dynamic"
                            ID="txtPassword1Validator3"
                            ControlToValidate="txtPassword1"
                            ValidationExpression="(\s|.){0,100}$"
                            ErrorMessage="Je možné zadať maximálne 100 znakov"
                            runat="server" />
                    </div>
                </div>
                <div
                    class="formRow">
                    <div
                        class="columnLabel">
                        <asp:Literal
                            ID="Literal4"
                            runat="server"
                            Text="Nové heslo pre kontrolu" />
                    </div>
                    <div
                        class="columnInput">
                        <telerik:RadTextBox
                            Width="95%"
                            ID="txtPassword2"
                            runat="server"
                            TextMode="Password" />
                    </div>
                    <div
                        class="columnError">
                        <asp:CompareValidator
                            Display="Dynamic"
                            ID="txtPassword2Validator1"
                            ControlToValidate="txtPassword1"
                            ErrorMessage="Heslá sa musia zhodovať"
                            ControlToCompare="txtPassword2"
                            runat="server" />
                    </div>
                </div>
                <div
                    class="formRow">
                    <div
                        class="columnLabel">
                        &nbsp;
                    </div>
                    <div
                        class="columnInput">
                        <telerik:RadButton
                            ID="btnSave"
                            runat="server"
                            Text="Uložiť" />
                    </div>
                    <div
                        class="columnError">
                        <asp:Label
                            ID="lblValidationError"
                            runat="server" />
                    </div>
                </div>
            </div>
        </div>
    </asp:Panel>
</div>
